package com.wangshuqi.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class LoggingApplication {
    static Logger logger = LoggerFactory.getLogger(LoggingApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(LoggingApplication.class, args);

        logger.trace("追踪");
        logger.debug("调试");
        // springboot默认日志级别是info
        logger.info("信息");
        logger.warn("警告");
        logger.error("异常");
        while (true){
            logger.info("打印信息");
        }
    }
}
